package com.boss.service.impl;

import com.boss.entity.Company;
import com.boss.entity.CompanyService;
import com.boss.mapper.CompanyMapper;
import com.boss.service.CompanysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CompanyServiceImpl implements CompanysService {
    @Autowired
    private CompanyMapper companyMapper;
    @Override
    public List<CompanyService> getCompany() {
        return companyMapper.getCompany();
    }

    @Override
    public boolean updCompany(Company company) {
        if (companyMapper.updCompany(company)==1){
            return true;
        }
        return false;
    }
}
